package io.kiki.sba.registry.server.clientInterface.store;

import io.kiki.sba.registry.common.model.Tuple;

import java.util.Collection;
import java.util.Map;
import java.util.function.BiConsumer;

public interface Store<T> {
    Map<String, T> get(String dataInfoId);

    Map<String, T> getOrCreate(String dataInfoId);

    void forEach(BiConsumer<String, Map<String, T>> consumer);

    Map<String, Map<String, T>> copyMap();

    Tuple<Long, Long> count();

    Collection<String> getDataInfoIds();
}
